{@ 'Users' | {headTitle}}

{@ 'tabs' | {placeholder} | -captureStart}
<ul>
    <li class="active-tab"><a href=""><span>Users</span></a></li>
    <li><a href=""><span>Roles</span></a></li>
</ul>
{@ 'tabs' | {placeholder} | -captureEnd}

<h1>User Administration</h1>
<p>Here you can edit a user's information, manage his roles and set various other options</p>

<form class="mz-dl-form" method="{=|{form.getMethod}}" action="{=|{form.getAction}}" enctype="{=|{form.getEncType}}">
<fieldset>
    <legend>User information: </legend>
    <dl>
        <dt>
            <label for="{=|{form.username.getId}}">
                {=|{form.username.getLabel}}
                {=|{form.username.renderErrors}}
            </label>
        </dt>
        <dd>
            {=|{form.username.renderViewHelper}}
        </dd>
    </dl>
    <dl>
        <dt>
            <label for="{=|{form.email.getId}}">
                {=|{form.email.getLabel}}
                {=|{form.email.renderErrors}}
            </label>
        </dt>
        <dd>
            {=|{form.email.renderViewHelper}}
        </dd>
    </dl>
    <dl>
        <dt>
            <label for="{=|{form.password.getId}}">
                {=|{form.password.getLabel}}
                {=|{form.password.renderErrors}}
            </label>
            <small>Leaving this field blank will not change the password</small>
        </dt>
        <dd>
            {=|{form.password.renderViewHelper}}
        </dd>
        <dd>
            {=|{form.passwordReset.renderViewHelper}}
            <label for="{=|{form.passwordReset.getId}}">{=|{form.passwordReset.getLabel}}</label>
        </dd>
    </dl>
    <dl>
        <dt>
            <label for="{=|{form.passwordConfirm.getId}}">
                {=|{form.passwordConfirm.getLabel}}
                {=|{form.passwordConfirm.renderErrors}}
            </label>
        </dt>
        <dd>
            {=|{form.passwordConfirm.renderViewHelper}}
        </dd>
    </dl>
</fieldset>
<fieldset>
    <legend>User roles: </legend>
    <dl>
        <dt><label>{=|{form.roles.getLabel}}</label></dt>
        <dd>
            {=|{form.roles.renderViewHelper}}
        </dd>
        <dd>
            <a href="{=['action': 'index', 'controller': 'roles']|{url}}">Manage roles</a>
        </dd>
    </dl>
</fieldset>
<fieldset>
    <dl>
        <dt>
        <label>Actions</label>
        </dt>
        <dd>
        {=|{form.submit.renderViewHelper}}
        {=|{form.disable.renderViewHelper}}
        </dd>
    </dl>
</fieldset>
</form>